From 5c63ab26da9297306290eb1aa540ac34caf80b9a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 17 Mar 2016 21:48:53 -0400 Subject: [PATCH] style context: Don't use g_warning for API misuse We've changed our API here; what these applications are doing used to be fine. Don't make users suffer for this by spamming their logs in a stable release. We'll keep the warning in master. https://bugzilla.gnome.org/show_bug.cgi?id=763796 --- gtk/gtkstylecontext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index ed1ad917bb..f5da8cab76 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -508,13 +508,13 @@ gtk_style_context_push_state (GtkStyleContext *context, else if (GTK_IS_CSS_WIDGET_NODE (root)) { GtkWidget *widget = gtk_css_widget_node_get_widget (GTK_CSS_WIDGET_NODE (root)); - g_warning ("State %u for %s %p doesn't match state %u set via gtk_style_context_set_state ()", - state, gtk_widget_get_name (widget), widget, gtk_css_node_get_state (priv->cssnode)); + g_debug ("State %u for %s %p doesn't match state %u set via gtk_style_context_set_state ()", + state, gtk_widget_get_name (widget), widget, gtk_css_node_get_state (priv->cssnode)); } else { - g_warning ("State %u for context %p doesn't match state %u set via gtk_style_context_set_state ()", - state, context, gtk_css_node_get_state (priv->cssnode)); + g_debug ("State %u for context %p doesn't match state %u set via gtk_style_context_set_state ()", + state, context, gtk_css_node_get_state (priv->cssnode)); } gtk_css_node_set_state (priv->cssnode, state); -- 2.30.2